package com.ksyun.campus.metaserver.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

/**
 * File/Directory status information
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class StatInfo {
    private String path;
    private FileType type;
    private long size;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime mtime;
    
    private int replication;
    private String owner;
    private String group;
    private int permissions;
    
    private List<ReplicaData> replicaData;
}
